import request from '@/utils/request'

// 查询患者医师绑定列表
export function listPatientDoctor(query) {
  return request({
    url: '/business/patientDoctor/list',
    method: 'get',
    params: query
  })
}

// 查询患者医师绑定详细
export function getPatientDoctor(patientId) {
  return request({
    url: '/business/patientDoctor/' + patientId,
    method: 'get'
  })
}

// 新增患者医师绑定
export function addPatientDoctor(data) {
  return request({
    url: '/business/patientDoctor',
    method: 'post',
    data: data
  })
}

// 修改患者医师绑定
export function updatePatientDoctor(data) {
  return request({
    url: '/business/patientDoctor',
    method: 'put',
    data: data
  })
}

// 删除患者医师绑定
export function delPatientDoctor(patientId) {
  return request({
    url: '/business/patientDoctor/' + patientId,
    method: 'delete'
  })
}
